package cmd

import (
	"gallery/crawler/fa"
	"strings"

	"github.com/spf13/cobra"
)

// faCmd represents the get command
var faCmd = &cobra.Command{
	Use:   "fa [作者名]",
	Short: "下载图片",
	Long:  `使用 gallery da 作者名 开始下载`,
	Args:  cobra.ExactArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		// 处理一下用户名
		fa.Start(strings.ToLower(args[0]))
	},
}

func init() {
	rootCmd.AddCommand(faCmd)
}
